# -*- coding: UTF-8 -*-
import requests
import sys
import pymongo
import re

reload(sys)
sys.setdefaultencoding('utf-8')

connection = pymongo.MongoClient('139.224.135.121', 27017)
db = connection.lianjia
db.authenticate("developer","qwerqwer")
BjDeal = db.BjDeal
count = BjDeal.count()
cursor = BjDeal.find().limit(10)
for i in cursor:
    try :
        print i
    except :
        print "出了点小问题"